import express from 'express'
import morgan from 'morgan'
import Router from './router/index'

const app = express()

app.use(morgan('dev'))
app.use(express.json())

// Router
app.use('/', Router.index)

app.listen(3000, () => {
	console.log('服务器启动在：http://localhost:3000')
})